type IFormDataVO = {
    areaCode: string // 所属城市code
    areaName: string // 所属城市名称
    businessLicense: string
    businessLicensehx?: string
    catTypeId: Array<string>
    cooperationType?: string
    cooperationType_Id?: string
    contractFlag: undefined
    contractPlat: undefined
    email?: string
    enterpriseAccount?: string
    enterpriseLevel?: string
    enterpriseLevelId?: string
    enterpriseName?: string
    enterpriseShort?: string
    enterpriseType?: string
    establishmenDate: string
    id?: string
    idCard?: string
    legalCard?: string
    legalCardBack: string
    legalCardFront: string
    legalRepresentative?: string
    legalRepresentativesfzfmurhx?: string
    parentId?: string
    phonenumber?: string
    registeredAddress?: string
    registeredMobile?: string
    status?: string
    unifiedSocialCreditCode?: string
    userName?: string
    enterpriseId?: string
    parentName?: string
    shangjqyId?: string
    shortAreaCode?: string
}

export function useForm() {
    // TODO: 新增 编辑组件复用 存在单选类型错误问题
    const form = reactive<IFormDataVO>({
        areaCode: '420100000000', // 所属城市code
        areaName: '武汉市', // 所属城市名称
        businessLicense: '',
        businessLicensehx: '',
        catTypeId: [],
        cooperationType: '',
        cooperationType_Id: '',
        contractFlag: undefined,
        contractPlat: undefined,
        email: '',
        enterpriseAccount: '10000', // 企业管理员账号 固定 10000
        enterpriseLevel: '二级企业',
        enterpriseLevelId: '2',
        enterpriseName: '',
        enterpriseShort: '',
        enterpriseType: '',
        establishmenDate: '',
        idCard: '',
        legalCard: '',
        legalCardBack: '',
        legalCardFront: '',
        legalRepresentative: '', // 企业法人
        legalRepresentativesfzfmurhx: '',
        parentId: '',
        phonenumber: '',
        registeredAddress: '', // 企业注册地
        registeredMobile: '', // 企业联系电话
        status: '0',
        unifiedSocialCreditCode: '',
        userName: '',
    })

    return { form }
}
